package tree.comparator;

import java.util.Comparator;
import tree.domain.*;

public class NodeASCComparator implements Comparator<Node>{

	public int compare(Node node1, Node node2) {
		Integer sort1 = node1.getSort();
		Integer sort2 = node2.getSort();
		return sort1>sort2?1:(sort1==sort2?0:-1);
	}

}
